home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000420_fdc@columbia.edu_Wed Oct 20 15:05:30 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Kermit Script Output Out of Order
  5. Date: 20 Oct 2004 19:04:46 GMT
  6. Organization: Columbia University
  7. Lines: 33
  8. Message-ID: <slrncnddme.qmr.fdc@sesame.cc.columbia.edu>
  9. References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com> <slrncnan01.3s1.fdc@sesame.cc.columbia.edu> <cl3tc5$5n0$1@zcars0v6.ca.nortel.com> <_mfdd.83561$Ot3.22349@twister.nyc.rr.com> <cl4k1s$97u$1@zcars0v6.ca.nortel.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1098299086 1103 128.59.59.56 (20 Oct 2004 19:04:46 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 20 Oct 2004 19:04:46 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15203
  17.  
  18. On 2004-10-20, Robert Simmons <robertls@nortelnetworks.com> wrote:
  19. : I am not piping the output of two processes to one file.  I tried the piping
  20. : of the output of only the kermit script to help debug the weird behaviour I
  21. : was seeing in the output during the fork of the script from the C++ process.
  22. :
  23. : As you can see below the line "Hello and welcome to csd_send_script.ksc!"
  24. : should be output well before "NO CARRIER" since it takes about 15 seconds
  25. : for NO CARRIER to be determined.
  26. :
  27. It's what I said: ECHO is buffered, whereas SET DIAL DISPLAY ON output is
  28. not.  By the way, Kermit has had FOR (and WHILE) loops for many years, so
  29. you don't need the old SET COUNT / IF COUNT trick any more:
  30.  
  31. : set count \%5
  32. ::loop
  33. :    echo Sending File. Transfer Count: \v(count)\10
  34. :    send \%6
  35. :    if success echo Send File #\v(count) complete\10
  36. :    if fail echo Failed Sending File #\v(count)
  37. : if count goto loop
  38.  
  39. Why are you sending the same file repeatedly?  Something like this
  40. looks more sensible:
  41.  
  42.   set flag off
  43.   for \%i 1 \%5 1 {
  44.       send \%6
  45.       if success break
  46.       echo "\%6: Failed - Try #\%i..."
  47.    }
  48.    if != \v(xferstatus) { ... }  # 0 means success
  49.  
  50. - Frank